package com.csnf.mall.servermvc.imp;

import com.csnf.mall.entity.ProductOrder;
import com.csnf.mall.mapper.ProductOrderMapper;
import com.csnf.mall.servermvc.ProductOrderService;
import com.csnf.mall.util.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service("productOrderService")
public class ProductOrderServiceImpl implements ProductOrderService {

    @Autowired
    private ProductOrderMapper productOrderMapper;

    @Override
    public List<ProductOrder> getList(ProductOrder productOrder, Byte[] productOrder_status_array, String orderBy, PageUtil pageUtil) {
        return productOrderMapper.select(productOrder, productOrder_status_array, orderBy, pageUtil);
    }


    @Override
    public Integer getTotal(ProductOrder productOrder, Byte[] productOrder_status_array) {
        return productOrderMapper.selectTotal(productOrder, productOrder_status_array);
    }

    @Override
    public ProductOrder getOrderById(Long orderId) {
        return null;
    }

    //

}
